const ruleSpawn = {
    spawnCreep: (creepParams) => {
        let { spawn, body, creepName, tag, role, rule, targetID, targetPos, params } = creepParams
        spawn.spawnCreep(body, creepName, {
            memory: {
                tag: tag,
                role: role,
                rule: rule,
                targetID: targetID,
                targetPos: targetPos,
                state: {
                    isWorking: false,
                    isRuning: false,
                    isBlock: false,
                    tick: 0,
                    path: []
                },
                params: params,
            }
        })
    }
}

export default ruleSpawn